package com.twang.stock.mapper;

import com.twang.stock.entity.KaiPanLaZhangTingInfo;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface KaiPanLaZhangTingInfoMapper extends Mapper<KaiPanLaZhangTingInfo> {

    int insertBatch(List<KaiPanLaZhangTingInfo> list);

    /**
     * 统计最新的涨停概念数
     * @return
     */
    List<String> getZhangTingGaiNian();

    /**
     * 根据概念 查询涨停个股
     * @return
     */
    List<KaiPanLaZhangTingInfo> getZhangTingStockByGaiNian(String gaiNian);

    /**
     * 查询最新得一条信息 by code
     * @param code
     * @return
     */
    KaiPanLaZhangTingInfo queyByCode(String code);

}
